package com.acoffee.controller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

/**
 * @author acoffee
 * @create 2021-11-17 15:54
 */
public class MyFristController implements Controller {

    @Override
    public ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("msg","Hello SpringMvc!");
        modelAndView.setViewName("/index.jsp");
        return modelAndView;
    }
}
